-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support constructor parameters annotations for schemes #1417
Add support constructor parameters annotations for schemes #1417
Conversation
d6fe83b
to
92f31de
Compare
|
2ff6b9b
to
48d73f0
Compare
48d73f0
to
f6b153f
Compare
@altro3 you have to sign the CLA again. Sorry for the inconvenience. |
@sdelamo ??? What does it mean? Is this blocking the merge? What do I need to do? |
No action in your side. It appears to be a glitch with cla-assistant.io reporting. Sorry for the noise. |
@altro3 Can you merge master into this branch? |
f6b153f
to
275d11f
Compare
@sdelamo done |
275d11f
to
f4c8af0
Compare
} | ||
} | ||
/* | ||
0 = {LoadedVisitor@8165} "io.micronaut.openapi.visitor.OpenApiGroupInfoVisitor@3d615b2e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|| isIgnoredParameterType(parameter.getType()); | ||
} | ||
|
||
private static boolean isParamAnnotationPresent(Element element, String className) { | ||
return element.findAnnotation(className).isPresent(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is not hasAnnotation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dstepanov ??? What do you mean? How I need to change it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do I need to change it to this:
parameter.isAnnotationPresent("org.springframework.web.bind.annotation.SessionAttribute")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and what difference between hasAnnotation
and isAnnotationPresent
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it’s better to avoid returning an optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, I still didn't get it.: Do I need to change something? If so, what should I change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal, but I think the method that return a boolean is better than the optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dstepanov ok, I changed it to hasAnnotation
. But what difference between hasAnnotation
and isAnnotationPresent
?
f4c8af0
to
0a99752
Compare
@sdelamo could you merge this last PR and finalize release? |
0a99752
to
6690467
Compare
@altro3 can you merge master into this branch? |
6690467
to
bfddeaf
Compare
@sdelamo done |
No description provided.